// 对外暴露配置路由
export const constantRoute = [
    {
        path: '/',
        name: 'Layout',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '首页',
            hidden: true,
            icon: "HomeFilled"
        },
        redirect: '/home',
        children: [
            {
                path: '/home',
                name: 'Home',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    hidden: false,
                    icon: "HomeFilled"
                }
            }
        ]
    },
    {
        path: '/Login',
        name: 'Login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            hidden: true,
            icon: "Promotion"
        }
    },
    {
        path: "/404",
        name: "404",
        component: () => import('@/views/404/index.vue'),
        meta: {
            title: '404',
            hidden: true,
            icon: "DataLine"
        }
    },
    {
        path: "/:pathMatch(.*)*",
        name: "Any",
        redirect: "/404",
        meta: {
            title: '其他',
            hidden: true,
            icon: "DocumentDelete"
        }
    },
    {
        path: '/column',
        name: 'Column',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '栏目管理',
            hidden: false,
            icon: "Lock"
        },
        redirect: '/column/list',
        children: [
            {
                path: '/column/list',
                name: 'ColumnList',
                component: () => import('@/views/column/index.vue'),
                meta: {
                    title: '栏目列表',
                    hidden: false,
                    icon: "User"
                }
            },
        ]
    },
    {
        path: '/article',
        name: 'Article',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '文章管理',
            hidden: false,
            icon: "Notebook"
        },
        redirect: '/article/list',
        children: [
            {
                path: '/article/list',
                name: 'ArticleList',
                component: () => import('@/views/article/index.vue'),
                meta: {
                    title: '文章类型列表',
                    hidden: false,
                    icon: "ArrowRight"
                }
            },
        ]
    },
    {
        path: '/notice',
        name: 'Notice',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '公告管理',
            hidden: false,
            icon: "ChatDotRound"
        },
        redirect: '/notice/list',
        children: [
            {
                path: '/notice/list',
                name: 'NoticeList',
                component: () => import('@/views/notice/index.vue'),
                meta: {
                    title: '公告类型列表',
                    hidden: false,
                    icon: "ArrowRight"
                }
            },
        ]
    },
    {
        path: '/admin',
        name: 'Admin',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '管理员管理',
            hidden: false,
            icon: "User"
        },
        redirect: '/notice/list',
        children: [
            {
                path: '/admin/list',
                name: 'AdminList',
                component: () => import('@/views/admin/index.vue'),
                meta: {
                    title: '管理员列表',
                    hidden: false,
                    icon: "ArrowRight"
                }
            }
        ]
    },
    {
        path: '/member',
        name: 'Member',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '会员管理',
            hidden: false,
            icon: "User"
        },
        redirect: '/member/list',
        children: [
            {
                path: '/member/list',
                name: 'MemberList',
                component: () => import('@/views/member/index.vue'),
                meta: {
                    title: '会员列表',
                    hidden: false,
                    icon: "ArrowRight"
                }
            }
        ]
    },
];